package com.hzya.frame.utils.core.tree;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class BaseTreeNodeDomain
{
  private String id;
  private String name;
  private String parentId;
  private String state;
  private String action;
  private Double orderBy;
  private String subTreeURL;
  private String target;
  private String isSelected;
  private String isDisabled;
  private String icon;
  private String openIcon;
  private String isRadio;
  private boolean isDragDrop;
  private Map attributesExp = Collections.EMPTY_MAP;

  public void addAttributes(String key, Object value)
  {
    if ((this.attributesExp == null) || (this.attributesExp.isEmpty())) this.attributesExp = new HashMap();
    this.attributesExp.put(key, value);
  }

  public String getState()
  {
    return this.state;
  }

  public void setState(String state)
  {
    this.state = state;
  }

  public Map getAttributesExp()
  {
    return this.attributesExp;
  }

  public void setAttributesExp(Map attributesExp)
  {
    this.attributesExp = attributesExp;
  }

  public String getTarget()
  {
    return this.target;
  }

  public void setTarget(String target) {
    this.target = target;
  }

  public String getId() {
    return this.id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return this.name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getParentId() {
    return this.parentId;
  }

  public void setParentId(String parentId) {
    this.parentId = parentId;
  }

  public String getAction() {
    return this.action;
  }

  public void setAction(String action) {
    this.action = action;
  }

  public Double getOrderBy() {
    return this.orderBy;
  }

  public void setOrderBy(Double orderBy) {
    this.orderBy = orderBy;
  }

  public String getSubTreeURL() {
    return this.subTreeURL;
  }

  public void setSubTreeURL(String subTreeURL) {
    this.subTreeURL = subTreeURL;
  }

  public String getIsSelected() {
    return this.isSelected;
  }

  public void setIsSelected(String isSelected) {
    this.isSelected = isSelected;
  }

  public String getIcon() {
    return this.icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  public String getOpenIcon() {
    return this.openIcon;
  }

  public void setOpenIcon(String openIcon) {
    this.openIcon = openIcon;
  }

  public boolean isSelected() {
    return "Y".equals(getIsSelected());
  }

  public void setSelected() {
    this.isSelected = "Y";
  }

  public String getIsDisabled() {
    return this.isDisabled;
  }

  public void setIsDisabled(String isDisabled) {
    this.isDisabled = isDisabled;
  }

  public void setDisabledShow() {
    this.isDisabled = "true";
  }

  public void setAbledShow() {
    this.isDisabled = "false";
  }

  public boolean isDisabledShow() {
    return "true".equals(getIsDisabled());
  }

  public String getIsRadio() {
    return this.isRadio;
  }

  public void setIsRadio(String isRadio) {
    this.isRadio = isRadio;
  }

  public void setRadio() {
    this.isRadio = "true";
  }

  public Double getOrderby()
  {
    return null;
  }

  public boolean isRootId() {
    return false;
  }

  public boolean isDragDrop() {
    return this.isDragDrop;
  }

  public void setDragDrop(boolean isDragDrop) {
    this.isDragDrop = isDragDrop;
  }
}